import auth01.models as models

class MyPermission(object):
    message="您不是会员，无权访问"

    def has_permission(self,request,view):
        print(request.user.user_type)
        if request.user.user_type==1:
            return False
        return True

